﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class downLoadMessage : System.Web.UI.Page
{
    AccessDAO dao = new AccessDAO();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            int id = Convert.ToInt32(Request.QueryString["id"].ToString());
            string ss = "update xzMessage set Xznum2=Xznum2+1 where id="+id;
            dao.getComm(ss);

            string ss1 = "select * from xzMessage where id="+id+" order by id desc";
            DataSet ds = dao.getDs(ss1);
            this.xz.DataSource = ds;
            this.xz.DataBind();

            string s2 = "select * from billInfo where id=1";
            DataSet ds2 = dao.getDs(s2);
            this.dlProdu.DataSource = ds2;
            this.dlProdu.DataBind();
        }
    }
}
